from celery_tasks.main import app
from utils.example.SendMessage import Smsutil

# 生产者 任务
# 必须用@app.task装饰器装饰


@app.task
def celery_send_sms_code(mobile, code):
    Smsutil().send_message(mobile, (code, 2))